<template>
  <div class="container">
    <button class="zan-btn zan-btn--warn" type="primary" @click="auth">去认证</button>
    <button class="zan-btn zan-btn--warn" type="primary" @click="logout">退出登录</button>
  </div>
</template>
<script>
import store from '@/store'
import wx from 'wx'
import router from '@/router/routes'
import { mapState } from 'vuex'
import { filter } from '@/utils/filter'
export default {
  onShow: function() {console.log(store)},
  created() {},
  methods: {
    logout() {
      store.dispatch('Logout')
    },
    auth() {
      /**
       * 问题待解决（报错：）
       */
      wx.navigateTo({
        url: '../edit/auth'
      })
    }
  }
}
</script>